﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class init21 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DDGetHeightBig",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DDGetHeightSmal",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DDPutHeightBig",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "DDPutHeightSaml",
                table: "FullCache_Entity");

            migrationBuilder.RenameColumn(
                name: "DDWind_FullTask",
                table: "FullCache_Entity",
                newName: "BFWind_FullTask");

            migrationBuilder.RenameColumn(
                name: "DDWindEmptyTask",
                table: "FullCache_Entity",
                newName: "BFWindEmptyTask");

            migrationBuilder.RenameColumn(
                name: "DDStation",
                table: "FullCache_Entity",
                newName: "BFStation");

            migrationBuilder.RenameColumn(
                name: "DDPreStation",
                table: "FullCache_Entity",
                newName: "BFPutHeightSaml");

            migrationBuilder.RenameColumn(
                name: "DDLoadFullTask",
                table: "FullCache_Entity",
                newName: "BFPutHeightBig");

            migrationBuilder.RenameColumn(
                name: "DDLoadEmptyTask",
                table: "FullCache_Entity",
                newName: "BFPreStation");

            migrationBuilder.RenameColumn(
                name: "DDBackStation",
                table: "FullCache_Entity",
                newName: "BFLoadFullTask");

            migrationBuilder.AddColumn<int>(
                name: "BFBackStation",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "BFGetHeightBig",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "BFGetHeightSmal",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "BFLoadEmptyTask",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BFBackStation",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "BFGetHeightBig",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "BFGetHeightSmal",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "BFLoadEmptyTask",
                table: "FullCache_Entity");

            migrationBuilder.RenameColumn(
                name: "BFWind_FullTask",
                table: "FullCache_Entity",
                newName: "DDWind_FullTask");

            migrationBuilder.RenameColumn(
                name: "BFWindEmptyTask",
                table: "FullCache_Entity",
                newName: "DDWindEmptyTask");

            migrationBuilder.RenameColumn(
                name: "BFStation",
                table: "FullCache_Entity",
                newName: "DDStation");

            migrationBuilder.RenameColumn(
                name: "BFPutHeightSaml",
                table: "FullCache_Entity",
                newName: "DDPreStation");

            migrationBuilder.RenameColumn(
                name: "BFPutHeightBig",
                table: "FullCache_Entity",
                newName: "DDLoadFullTask");

            migrationBuilder.RenameColumn(
                name: "BFPreStation",
                table: "FullCache_Entity",
                newName: "DDLoadEmptyTask");

            migrationBuilder.RenameColumn(
                name: "BFLoadFullTask",
                table: "FullCache_Entity",
                newName: "DDBackStation");

            migrationBuilder.AddColumn<float>(
                name: "DDGetHeightBig",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                defaultValue: 0f);

            migrationBuilder.AddColumn<float>(
                name: "DDGetHeightSmal",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                defaultValue: 0f);

            migrationBuilder.AddColumn<float>(
                name: "DDPutHeightBig",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                defaultValue: 0f);

            migrationBuilder.AddColumn<float>(
                name: "DDPutHeightSaml",
                table: "FullCache_Entity",
                type: "real",
                nullable: false,
                defaultValue: 0f);
        }
    }
}
